load("classpath:ext/file.js");

function fileToolUsage() {
    console.info("usage: ");
    console.info("    ljs file delete fileName");
}

function fileMain(params) {
    if (params.length < 3) {
        fileToolUsage();
        return;
    }
    var cmd = params[1].trim();
    var localPath = params[2].trim();
    var fileClient = new FileClient();
    if ("delete" === cmd) {
        fileClient.delete(localPath);
        return;
    }
    console.info("error on cmd = " + cmd)
}

fileMain(args);